<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% String cpath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script>
function checkSelected(v) {
	if(v == ""){
		document.getElementById("bank").innerHTML="";
	}else if(v == "9003-2103-5675-1"){
	document.getElementById("bank").innerHTML="9003-2103-5675-1";
	}else document.getElementById("bank").innerHTML="015437-04-011497";
	}
</script>
</head>
<body>

<!-- 상단 로그인 패널을 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<!-- 상단 및 좌측 메뉴(카테고리)리스트를 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<!--------------------------------------여기다가 각자 삽입------------------------------------>
<form name="readForm" action="<%=cpath%>/orders/payment" method="post"><br />
	<img src="<%=cpath%>/resources/orders_item.gif"><br /><br />

<input type="hidden" name="member_id" value="${profile.member_id }">

	<img src="<%=cpath%>/resources/orders_orders.gif"><br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">주문자 성명:${profile.member_name }<br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">이메일:${profile.member_email }<br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">전화번호:${profile.member_phone }<br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">핸드폰:${profile.member_handphone }<br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">우편번호:${profile.member_zipcode }<br/>
	<img src="<%=cpath%>/resources/orders_arrow.gif">주소:${profile.member_address1 } ${profile.member_address2 }<br/>

<input type="hidden" name="orders_rcode" value="${beans.orders_rcode }">

	<img src="<%=cpath%>/resources/orders_receiver.gif"><br />
	<br /><img src="<%=cpath%>/resources/orders_arrow.gif">주문번호:${beans.orders_rcode }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">수취인 성명:${beans.orders_receiver }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">이메일:${beans.orders_email }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">전화번호:${beans.orders_tel1 } - ${beans.orders_tel2 } - ${beans.orders_tel3 }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">핸드폰:${beans.orders_phone1 } - ${beans.orders_phone2 } - ${beans.orders_phone3 }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">우편번호:${beans.orders_zipcode1 } - ${beans.orders_zipcode2 }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">주소:${beans.orders_address } ${beans.orders_detail }
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">요청사항:${beans.orders_memo }
	<br /><br />
	
	<c:if test="${payType == 'cash' }">
	
	<img src="<%=cpath%>/resources/orders_bank.gif">
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">입금하실 금액
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">은행선택
	
	<select name="bank" onChange="checkSelected(this.value);">
		<option value="">==========</option>
		<option value="9003-2103-5675-1">1. 새마을금고</option>
		<option value="015437-04-011497">2. 국민은행</option>
	</select>
	
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">입금계좌번호 <span id="bank"></span>
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">입금계좌예금주 허경
	<br /> <img src="<%=cpath%>/resources/orders_arrow.gif">입금자명<input type="text" name="name">
	<br />
	 <img src="<%=cpath%>/resources/orders_arrow.gif">입금예정일자
	<select name="year">
		<option value='2013' selected>2013</option>
		<option value='2014'>2014</option>

	</select> 년
	<select name="month">
	<c:forEach var="cnt" begin="1" end="12">
	<option value="${cnt }">${cnt }</option>
	
	</c:forEach>
	</select> 월
	<select name="day">
		<c:forEach var="cnt" begin="1" end="31">
		<option value="${cnt }">${cnt }</option>
		</c:forEach>
	</select> 일
	</c:if>
	<input type="submit" value="결제하기">
</form>

<!--------------------------------------   삽입 끝       ------------------------------------>
</div> 

<!-- 하단 이용약관, 고객센터, 회사정보 등의 정보를 include로 삽입 -->
<div style="position:absolute; left:0; top:1200px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>
</body>
</html>

